home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Dr. Windows 3
/
dr win3.zip
/
dr win3
/
VISUALBA
/
TG_DEMO.ZIP
/
TGDEMO3.FRM
(
.txt
)
< prev
next >
Wrap
Visual Basic Form
|
1993-08-04
|
3KB
|
88 lines
Demo3
Demo 3 - Code Interaction
Form15
Command7
Command6
Previous
Command5
Command4
First
Command3
AddNew
Command2
Delete
Command1
Update
Text1
Text1
Data1*
COMPANY
Text1
Text1
Data1*
LASTNAME
Text1
Text1
Data1* FIRSTNAME
Table1
TgDemo
First Name
Firstname
Last Name
Lastname
Company
Company
Data1M
Data1%
dBASE IV;database=.
CUSTOMER
Customer Database
Label1
Company
Label1
Last Name
Label1
First Name
Form_Load
Form_Unload
Cancel
QuitCurrentDemo
Command1_Click
Command2_Click
Data1
Recordset
Command3_Click
Command4_Click
Command5_Click
Command6_Click
Command7_Click
After
Command1_Click
TrueGrid will automatically "listen" for thei
update and will change the display to indicate
that the data has been written.
Command2_Click
When the current record is deleted, Access leaves
the record pointer at the deleted record. However,
upon return to TrueGrid, the grid senses that the
current position is invalid and positions to thee
next record automatically.d
Command3_Click
AddNew doesn't actually create the record, whiche
is why we need the Update. e
After the AddNew/Update
pair, VB3/Access reinstates the OLD record position.
To make things more pleasant for the grid user,
we position to the last record (the newly added one).
It is not necessary to write any code to inform
TrueGrid about what you are doing.o
Command4_Click
TrueGrid will follow the actions taken here.o
Command5_Click
TrueGrid will follow the actions taken here.o
Command6_Click
TrueGrid will follow the actions taken here.o
Command7_Click
TrueGrid will follow the actions taken here.o
Form_Unload